package com.ajz.manager.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ajz.common.dao.BaseDao;
import com.ajz.manager.entity.SysAppVersion;

@Repository
public interface SysAppVersionDao  extends BaseDao<SysAppVersion, String> {

	@Query("select t from SysAppVersion t where t.vcode = (select max(b.vcode)  from SysAppVersion as b where b.appType=?1)  and t.appType=?1")
	SysAppVersion findByDeviceType(Integer appType);
}
